// 用于显示任务grid的tabTabPanel
var taskTabPanel = Ext.create('Ext.tab.Panel', {
    title: '任务栏',
    region: 'east',
    margin: '5 0 0 5',
    width: '29%',
    collapsible: true, // 有没有按钮向内缩进
    layout: 'fit',
    split: true,//设置能不能鼠标拖动改变宽度
    defaults: {
        layout: 'fit'
    },
    items: [{
        title: '我的任务',
        itemId: 'receiveTab',
        icon: 'static/images/icons/fam/noTip.ico',
        items: [taskReceiverList]
    }, {
        title: '我创建的任务',
        items: [taskResponseList]
    }, {
        title: '聊天窗口',
        icon: 'static/images/icons/fam/noTip.ico',
		itemId: 'chatTab',
        items: [chattingListPanel]
    }],
    tools: [{
        type: 'refresh',
        tooltip: '刷新任务列表',
        // hidden:true,
        position: 'left',
        handler: function (event, toolEl, panelHeader) {
            // refresh logic
            taskReceiverListStore.reload();
            taskResponseListStore.reload();
        }
    }]
});
